package com.kvest.fortests.activity;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import com.kvest.fortests.R;
import com.kvest.fortests.fragment.NavigationDrawerFragment;
import com.kvest.fortests.fragment.TextFragment;

/**
 * Created with IntelliJ IDEA.
 * User: Kvest
 * Date: 23.08.13
 * Time: 22:06
 * To change this template use File | Settings | File Templates.
 */
public class FragmentHostActivity extends FragmentActivity {
    @Override
    public void onCreate(Bundle savedState) {
        super.onCreate(savedState);
        setContentView(R.layout.fragment_host_layout);

        if (savedState == null) {
            FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
            transaction.replace(R.id.container, new NavigationDrawerFragment());
            transaction.replace(R.id.container1, new NavigationDrawerFragment());
            transaction.commit();
        }
    }
}
